<template>
	<view>
		<!-- 客服弹框 -->
		<u-popup :show="kfshow" @close="kfclose" mode="center" :round="10">
			<view class="" style="padding:40rpx 150rpx;">
				<view class="bigtext fonweight xiaohei textcenter">在线客服</view>
				<view class="bigtext fonweight xiaolan webxhx margin_top2">400-25848798</view>
				<view class="bigtext fonweight xiaolan textcenter margin_top6">复制</view>
			</view>
		</u-popup>
		<!-- 合作弹框 -->
		<u-popup :show="hzshow" @close="hzclose" mode="center" :round="10">
			<view class="" style="padding:40rpx 150rpx;">
				<view class="bigtext fonweight xiaohei textcenter">申请合作</view>
				<view class="bigtext fonweight xiaolan webxhx margin_top2">400-25848798</view>
				<view class="bigtext fonweight xiaolan textcenter margin_top6">复制</view>
			</view>
		</u-popup>
		<!-- 右侧弹出层 -->
		<u-popup :show="show" @close="close" mode="right">
			<view class="" style="padding:130rpx 48rpx 0;">
				<view class="" style="width: 350rpx;">
					<view class="xiahuaxian">
						<view class="flexleft" @click="jumper('/pages_mypage/wodedingd')">
							<image class="margin_right3 tcicopn" src="../static/image/system/dd.png" mode=""></image>
							<view class="ershiba">我的订单</view>
						</view>
						<view class="flexleft margin_top5" @click="jumper('/pages_mypage/wodeqianbao')">
							<image class="margin_right3 tcicopn" src="../static/image/system/qb.png" mode=""></image>
							<view class="ershiba">我的钱包</view>
						</view>
						<view class="flexleft margin_top5" @click="jumper('/pages_mypage/youhuiq')">
							<image class="margin_right3 tcicopn" src="../static/image/system/yhq1.png" mode=""></image>
							<view class="ershiba">我的优惠券</view>
						</view>
					</view>
					<view class="xiahuaxian margin_top5">
						<view class="flexleft" @click="jumper('/pages_mypage/wodeliwu')">
							<image class="margin_right3 tcicopn" src="../static/image/system/lw.png" mode=""></image>
							<view class="ershiba">我的礼物</view>
						</view>
						<view class="flexleft margin_top5" @click="jumper('/pages_mypage/yaoqinghy')">
							<image class="margin_right3 tcicopn" src="../static/image/system/yqhy.png" mode=""></image>
							<view class="ershiba">邀请好友</view>
						</view>
						<view class="flexleft margin_top5" @click="jumper('/pages_mypage/renzhengplg')">
							<image class="margin_right3 tcicopn" src="../static/image/system/rzplg.png" mode=""></image>
							<view class="ershiba">认证陪聊官</view>
						</view>
						<view class="flexleft margin_top5">
							<image class="margin_right3 tcicopn" src="../static/image/system/xffl.png" mode=""></image>
							<view class="ershiba">消费返利</view>
						</view>
					</view>
					<view class="xiahuaxian margin_top5">
						<view class="flexleft" @click="jumper('/pages_mypage/dizhiguanli')">
							<image class="margin_right3 tcicopn" src="../static/image/system/shdz.png" mode=""></image>
							<view class="ershiba">收货地址</view>
						</view>
						<view class="flexleft margin_top5" @click="tzkztk">
							<image class="margin_right3 tcicopn" src="../static/image/system/hz.png" mode=""></image>
							<view class="ershiba">申请合作</view>
						</view>
						<view class="flexleft margin_top5" @click="dkkft">
							<image class="margin_right3 tcicopn" src="../static/image/system/kf.png" mode=""></image>
							<view class="ershiba">在线客服</view>
						</view>
						<view class="flexleft margin_top5" @click="jumper('/pages_mypage/shezhi')">
							<image class="margin_right3 tcicopn" src="../static/image/system/sz.png" mode=""></image>
							<view class="ershiba">设置</view>
						</view>
					</view>
				</view>
			</view>
		</u-popup>
		<view class="" style="padding-bottom: 130rpx;">
			<!-- 头部 -->
			<view class="toubox dingwei">
				<view class="zuytu">
					<image src="../static/image/system/zybjt.png" mode=""></image>
				</view>
				<view class="flexright dingbu" @click="show = true">
					<view class="">
						<image class="dbicon" src="../static/image/system/dk.png" mode=""></image>
					</view>
				</view>
			</view>
			<view class="baibox mainpadding">
				<view class="flexleft">
					<image class="touxiang margin_right3" src="../static/image/system/vs.png" mode=""></image>
					<view class="jbzlbtn flexcenter" @click="jumper('/pages_mypage/bianjiziliao')">
						<view class="margin_right1">
							<u-icon name="edit-pen" color="#333333" size="22"></u-icon>
						</view>
						<view class="ershiba margin_right1">编辑资料</view>
						<view class="ershiba xiaohui">70%</view>
					</view>
				</view>
				<view class=" margin_top ">
					<view class="xiahuaxian">
						<view class="flexleft">
							<view class="xiaohei fonweight margin_right2" style="font-size: 48rpx;">孤独比酒暖°</view>
							<view class="xlbtn xiaolan smalltext margin_right1 flexcenter">在线</view>
							<view class="xlbtn xiaolan smalltext margin_right1 flexcenter">陪聊官</view>
						</view>
						<view class="flexleft margin_top2">
							<view class="xiaohui strongtext margin_right1">ID号:tangguobutian</view>
							<image class="fuzhi" src="../static/image/system/fz.png" mode=""></image>
						</view>
						<view class="flexbetween margin_top">
							<view class="flexcenter sanshis huibtn">
								<image class="qbicon margin_right1" src="../static/image/system/qb.png" mode=""></image>
								<view class="">我的钱包</view>
							</view>
							<view class="flexcenter sanshis huibtn">
								<image class="qbicon margin_right1" src="../static/image/system/shjf.png" mode="">
								</image>
								<view class="">生活缴费</view>
							</view>
							<view class="flexcenter sanshis huibtn">
								<image class="qbicon margin_right1" src="../static/image/system/dd.png" mode=""></image>
								<view class="">我的订单</view>
							</view>
						</view>
					</view>
					<view class="xiahuaxian">
						<!--个人简介 -->
						<!-- <view class="">
							<view class="margin_top ershiba xiaohui">
								我是画师 我是画师 我是画师 全民:buy夏 求图微博:buy夏 暂不接稿，我已经废了 画画报名VX:lingw0316【注明
							</view>
							<view class="flexleft margin_top flex_wrap">
								<view class="xhbtn flexcenter margin_right1">
									<image class="zhixiang margin_right1" src="../static/image/system/zx.png" mode=""></image>
									<view class="smalltext xiaohui">19岁</view>
								</view>
								<view class="xhbtn flexcenter">
									<view class="smalltext xiaohui">打篮球</view>
								</view>
							</view>
						</view> -->
						<!-- 无个人简介 -->
						<view class="">
							<view class="margin_top ershiba xiaohei">你还没有填写个人简介，点击添加...</view>
							<view class="flexleft margin_top flex_wrap">
								<view class="xhbtn flexcenter margin_right1">
									<view class=" margin_right1">
										<u-icon name="plus" color="#949494" size="11"></u-icon>
									</view>
									<view class="smalltext xiaohui">添加年龄、喜好标签</view>
								</view>
							</view>
						</view>
						<view class="flexleft margin_top">
							<view class="flexleft margin_right2">
								<view class="sanshier fonweight margin_right1">2034.2w</view>
								<view class="smalltext xiaohui margin_right1">获赞</view>
							</view>
							<view class="flexleft margin_right2" @click="tzgywm(0)">
								<view class="sanshier fonweight margin_right1">2034.2w</view>
								<view class="smalltext xiaohui margin_right1">关注</view>
							</view>
							<view class="flexleft" @click="tzgywm(1)">
								<view class="sanshier fonweight margin_right1">2034.2w</view>
								<view class="smalltext xiaohui margin_right1">粉丝</view>
							</view>
						</view>
					</view>
				</view>
				<view class="tab_nav">
					<view class="navTitle" v-for="(item,index) in navList" :key="index">
						<view :class="{'active':isActive === index}" @click="checked(index)">
							{{item.title}}
						</view>
					</view>
				</view>
				<!-- 动态 -->
				<view class="" v-if="isActive == 1">
					<view class="margin_top" v-for="item in 3" @click="tzdtxq">
						<view class="flexleft">
							<image class="margin_right1 xiaotux" src="../static/image/system/vs.png" mode=""></image>
							<view class="">
								<view class="ershiba xiaohei">孤独比酒暖°</view>
								<view class="smalltext xiaohui margin_top1">6小时前</view>
							</view>
						</view>
						<view class="margin_top sanshier xiaohei">远处是风景，近处的才是人生.</view>
						<view class="flexleft flex_wrap">
							<view class="sanshis flexcenter margin_top" v-for="item in 3">
								<image class="dtbabb" src="../static/image/system/zybjt.png" mode=""></image>
							</view>
						</view>
						<view class="flexbetween margin_top">
							<view class="ershiw flexcenter">
								<view class="flexleft">
									<view class="dticon">
										<image src="../static/image/system/s.png" mode=""></image>
									</view>
									<view class="smalltext xiaohei">28</view>
								</view>
							</view>
							<view class="ershiw flexcenter">
								<view class="flexleft">
									<view class="dticon">
										<image src="../static/image/system/fx.png" mode=""></image>
									</view>
									<view class="smalltext xiaohei">28</view>
								</view>
							</view>
							<view class="ershiw flexcenter">
								<view class="flexleft">
									<view class="dticon">
										<image src="../static/image/system/xx.png" mode=""></image>
									</view>
									<view class="smalltext xiaohei">28</view>
								</view>
							</view>
							<view class="ershiw flexcenter">
								<view class="flexleft">
									<view class="dticon">
										<image src="../static/image/system/dz.png" mode=""></image>
									</view>
									<view class="smalltext xiaohei">28</view>
								</view>
							</view>
						</view>
					</view>
					<view class="margin_top strongtext xiaohui textcenter ">已经到底了哦~</view>
				</view>
				<!-- 收藏 -->
				<view class="" v-if="isActive == 2">
					<!-- 切换tab -->
					<view class="flexleft ">
						<view :class="current==1?'nofocustext margin_right3':'focustext margin_right3'"
							@click="selectab(1)">视频</view>
						<view :class="current==2?'nofocustext margin_right3':'focustext margin_right3'"
							@click="selectab(2)">动态</view>
						<view :class="current==3?'nofocustext margin_right3':'focustext margin_right3'"
							@click="selectab(3)">商品</view>
					</view>
					<!--动态  -->
					<view class="" v-if="current == 2">
						<view class="margin_top" v-for="item in 3" @click="tzdtxq">
							<view class="flexleft">
								<image class="margin_right1 xiaotux" src="../static/image/system/vs.png" mode="">
								</image>
								<view class="">
									<view class="ershiba xiaohei">孤独比酒暖°</view>
									<view class="smalltext xiaohui margin_top1">6小时前</view>
								</view>
							</view>
							<view class="margin_top sanshier xiaohei">远处是风景，近处的才是人生.</view>
							<view class="flexleft flex_wrap">
								<view class="sanshis flexcenter margin_top" v-for="item in 3">
									<image class="dtbabb" src="../static/image/system/zybjt.png" mode=""></image>
								</view>
							</view>
							<view class="flexbetween margin_top">
								<view class="ershiw flexcenter">
									<view class="flexleft">
										<view class="dticon">
											<image src="../static/image/system/s.png" mode=""></image>
										</view>
										<view class="smalltext xiaohei">28</view>
									</view>
								</view>
								<view class="ershiw flexcenter">
									<view class="flexleft">
										<view class="dticon">
											<image src="../static/image/system/fx.png" mode=""></image>
										</view>
										<view class="smalltext xiaohei">28</view>
									</view>
								</view>
								<view class="ershiw flexcenter">
									<view class="flexleft">
										<view class="dticon">
											<image src="../static/image/system/xx.png" mode=""></image>
										</view>
										<view class="smalltext xiaohei">28</view>
									</view>
								</view>
								<view class="ershiw flexcenter">
									<view class="flexleft">
										<view class="dticon">
											<image src="../static/image/system/dz.png" mode=""></image>
										</view>
										<view class="smalltext xiaohei">28</view>
									</view>
								</view>
							</view>
						</view>
						<view class="margin_top strongtext xiaohui textcenter ">已经到底了哦~</view>
					</view>
					<!-- 商品 -->
					<view class="" v-if="current == 3">
						<view class="margin_top" v-for="item in 3">
							<view class="flexbetween">
								<image class="sptup" src="../static/image/system/zybjt.png" mode=""></image>
								<view class="" style="width: 80%;">
									<view class="sanshier xiaohei fonweight yhxk">小当家干脆面整箱批发干吃面办公室...</view>
									<view class="strongtext xiaohui margin_top1">已售2581件</view>
									<view class="ershiba xiaohong margin_top1">￥5.8</view>
								</view>
							</view>
						</view>
						<view class="margin_top strongtext xiaohui textcenter ">已经到底了哦~</view>
					</view>
				</view>
				<!-- 喜欢 -->
				<view class="" v-if="isActive == 3">
					<view class="flexleft">
						<view :class="current==1?'nofocustext margin_right3':'focustext margin_right3'"
							@click="selectab(1)">视频</view>
						<view :class="current==2?'nofocustext margin_right3':'focustext margin_right3'"
							@click="selectab(2)">动态</view>
					</view>
				</view>
			</view>
		</view>
		<tabbardi :current="4"></tabbardi>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				isActive: 0,
				navList: [{
					index: 0,
					title: '作品'
				}, {
					index: 1,
					title: "动态"
				}, {
					index: 1,
					title: "收藏"
				}, {
					index: 1,
					title: "喜欢"
				}],
				show: false,
				hzshow: false,//合作
				kfshow: false,//客服
				current: 1,
			}
		},
		onLoad() {

		},
		methods: {
			// 打开客服弹框
			dkkft(){
				this.show = false
				this.kfshow = true
			},
			kfclose() {
				this.kfshow = false
			},
			// 打开合作弹框
			tzkztk(){
				this.show = false
				this.hzshow = true
			},
			hzclose() {
				this.hzshow = false
			},
			selectab(i) {
				if (i == this.current) {
					return false
				}
				this.current = i
			},
			// 跳转动态详情
			tzdtxq() {
				uni.navigateTo({
					url: '/pages_fabu/dongtaixq'
				})
			},
			close() {
				this.show = false
			},
			jumper(url) {
				uni.navigateTo({
					url: url
				})
			},
			// 跳转关注及粉丝
			tzgywm(i) {
				uni.navigateTo({
					url: '/pages_homepage/guanzhu?id=' + i
				})
			},
			checked(index) {
				this.isActive = index
			},
		}
	}
</script>

<style lang="scss" scoped>
	.webxhx{
		text-decoration: underline;
	}
	.sptup {
		width: 124rpx;
		height: 124rpx;
	}

	.focustext {
		font-size: 24rpx;
		font-family: PingFang SC;
		font-weight: bold;
		color: #999999;
	}

	.nofocustext {
		width: 96rpx;
		height: 54rpx;
		background: #F2F2F2;
		border-radius: 27rpx;
		font-size: 24rpx;
		display: flex;
		align-items: center;
		justify-content: center;
		font-weight: bold;
		color: #333333;
	}

	.jbzlbtn {
		width: 468rpx;
		height: 88rpx;
		background: #F5F5F5;
		border-radius: 40rpx;
	}

	.tcicopn {
		width: 40rpx;
		height: 40rpx;
	}

	.qbicon {
		width: 32rpx;
		height: 32rpx;
	}

	.huibtn {
		width: 214rpx;
		height: 72rpx;
		background: #F5F5F5;
		border: 1px solid #F2F2F2;
		border-radius: 36rpx;
		font-size: 24rpx;
		font-family: PingFang SC;
		font-weight: 500;
		color: #333333;
	}

	.wbox {
		padding: 25rpx;
		border-radius: 50%;
		background-color: #f2f2f2;
	}

	.navbox {
		position: fixed;
		top: 0rpx;
		left: 0;
		right: 0;
		padding: 30rpx;
		background: #fff;
	}

	.dticon {
		width: 32rpx;
		height: 32rpx;

		image {
			width: 100%;
			height: 100%;
		}
	}

	.dtbabb {
		width: 224rpx;
		height: 224rpx;
	}

	.xiaotux {
		width: 64rpx;
		height: 64rpx;
		border-radius: 50%;
	}

	.tab_nav {
		background-color: #fff;
		display: flex;
		justify-content: center;
		align-items: center;
		padding-bottom: 11rpx;
	}

	.tab_nav .navTitle {
		height: 90rpx;
		line-height: 90rpx;
		width: 100%;
		text-align: center;
		font-size: 30rpx;
		font-weight: bold;
		color: #999999;
	}

	.active {
		font-size: 30rpx;
		color: #333333;
		font-weight: bold;
		position: relative;
	}

	.active::after {
		content: "";
		position: absolute;
		width: 36rpx;
		height: 6rpx;
		background: #000000;
		border-radius: 3rpx;
		background-size: 100% 100%;
		left: 0rpx;
		right: 0rpx;
		bottom: 0rpx;
		margin: auto;
	}

	.xhbtn {
		padding: 10rpx 20rpx;
		background: #F5F5F5;
		border-radius: 20rpx;
	}

	.zhixiang {
		width: 20rpx;
		height: 20rpx;
	}

	.fuzhi {
		width: 24rpx;
		height: 24rpx;
	}

	.xlbtn {
		width: 70rpx;
		height: 34rpx;
		border: 1rpx solid #2361FF;
	}

	.dhbtn {
		background: #F5F5F5;
		border-radius: 44rpx;
		padding: 30rpx 68rpx;
	}

	.labtn {
		width: 256rpx;
		height: 88rpx;
		background: #2361FF;
		border-radius: 44rpx;
	}

	.touxiang {
		width: 192rpx;
		height: 192rpx;
		border-radius: 50%;
	}

	.zuytu {
		width: 100%;
		height: 300rpx;

		image {
			width: 100%;
			height: 100%;
		}
	}

	.dingbu {
		background-size: 100% 100%;
		width: 100%;
		position: absolute;
		top: 40rpx;
		padding: 30rpx;
		left: 0;
		box-sizing: border-box;
	}

	.baibox {
		background: #FFFFFF;
		border-radius: 40rpx 40rpx 0 0;
	}

	.dbicon {
		width: 48rpx;
		height: 48rpx;
	}

	// .dingbu {

	// 	padding: 88rpx 30rpx 130rpx;
	// 	background-size: 100% 100%;
	// 	width: 100%;
	// 	background-image: url('../static/image/system/zybjt.png');
	// 	box-sizing: border-box;
	// }
</style>